-- GENERATED SPELL FOR [Hardened Steel Berserker] --


function spell0_28579(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(61369,pUnit)
pUnit:RegisterEvent('Sorts_28579', 623, 1)
end

function spell1_28579(pUnit, Event) --@Hurl Weapon,n/a--
pUnit:FullCastSpellOnTarget(52740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28579', 22000, 1)
end

function spell2_28579(pUnit, Event) --@Hurl Weapon,n/a--
pUnit:FullCastSpellOnTarget(59259,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28579', 22000, 1)
end

function Sorts_28579(pUnit, Event)
local choix_sorts_28579 = math.random(0, 2)
if choix_sorts_28579 == 0 then
pUnit:RegisterEvent('spell0_28579', 1, 1)
end
if choix_sorts_28579 == 1 then
pUnit:RegisterEvent('spell1_28579', 1, 1)
end
if choix_sorts_28579 == 2 then
pUnit:RegisterEvent('spell2_28579', 1, 1)
end
end

function mob28579_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28579', math.random(1500, 3000), 1)
end

function mob28579_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28579_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28579_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28579, 1, 'mob28579_Action')
RegisterUnitEvent(28579, 2, 'mob28579_Leave')
RegisterUnitEvent(28579, 3, 'mob28579_Kill')
RegisterUnitEvent(28579, 4, 'mob28579_Die')
